Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for process_turn in the profile docs #4786

Merged
merged 4 commits into from
Jan 10, 2018

Conversation

chaupow
Copy link
Member

@chaupow chaupow commented Jan 8, 2018

Issue

Updating incorrect docs to support #4775
The available attributes for the process_turn function accessible in the lua profiles were incorrect.

Tasklist

Requirements / Relations

None

@chaupow chaupow added the Review label Jan 8, 2018
Copy link
Contributor

@oxidase oxidase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks nice!

docs/profiles.md Outdated
weight | Read/write | Float | Penalty to be applied for this turn (routing weight)
duration | Read/write | Float | Penalty to be applied for this turn (duration in deciseconds)
source_mode | Read/write | Enum | Travel mode before the turn. Defined in `include/extractor/travel_mode.hpp`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source_mode and target_mode are Read/write properties but not used after process_turn calls and can be Read-only properties. I guess const qualifiers are missing at

TravelMode source_mode;
TravelMode target_mode;
};

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

docs/profiles.md Outdated
weight | Read/write | Float | Penalty to be applied for this turn (routing weight)
duration | Read/write | Float | Penalty to be applied for this turn (duration in deciseconds)
source_mode | Read/write | Enum | Travel mode before the turn. Defined in `include/extractor/travel_mode.hpp`
target_mode | Read/write | Enum | Travel mode after the turn. Defined in `include/extractor/travel_mode.hpp`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_left_hand_driving | Read | Boolean | Is left-hand traffic? | is missing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed this one thanks!

Copy link
Contributor

@oxidase oxidase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@chaupow chaupow merged commit e998c11 into master Jan 10, 2018
@chaupow chaupow deleted the docs/profile_process_turn_update branch January 10, 2018 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants